package org.asiainfo.system.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;

import java.io.Serial;
import java.io.Serializable;

/**
 * 角色和部门关联表  角色1-N部门(SysRoleDept)实体类
 *
 * @author dotor-ww
 * @since 2024-01-20 22:53:34
 */
@Data
@AllArgsConstructor
@Table("sys_role_dept")
public class SysRoleDept implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 角色ID
     */
    @Id
    @Column(value = "role_id")
    private Long roleId;
    /**
     * 部门ID
     */
    @Id
    @Column(value = "dept_id")
    private Long deptId;
}

